package bb.lanxing.device.sgdevcie.xpair.net

import bb.lanxing.device.sgdevcie.xpair.uimodel.XPairDeviceBoundParam
import bb.lanxing.device.sgdevcie.xpair.uimodel.XossBoundedDevice
import bb.lanxing.net.retrofit.GenericResponse
import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface XPairService {
    @POST("/api/v2/opendevice/registry/connect/")
    suspend fun boundDevice(
        @Body xPairDeviceBoundParam: XPairDeviceBoundParam,
    ): Response<String>

    @GET("/api/v2/opendevice/registry/")
    suspend fun boundedList(): GenericResponse<MutableList<XossBoundedDevice>>

    @POST("/api/v2/opendevice/registry/disconnect/")
    suspend fun unboundDevice(
        @Body xPairDeviceBoundParam: XPairDeviceBoundParam,
    ): Response<String>
}
